﻿using System;
using System.Collections.Generic;

namespace Scala.Data
{
    public interface IRepo<TEntity, Tid> where TEntity : IEntity<Tid>
    {
        void Save(TEntity entity);
        void Remove(TEntity entity);
        TEntity Get(Tid id);
        TEntity Find(Func<TEntity, bool> funct);
        IEnumerable<TEntity> FindRange(Func<TEntity, bool> funct);
    }
}
